package com.woniu.ly.manageassembly.controller;

import com.woniu.ly.manageassembly.component.AdminSeckillComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class SeckillTestController {

    @Autowired
    private AdminSeckillComponent asc;

    @GetMapping("addAllSeckillTourIdInRedis")
    public void addAllSeckillTourIdInRedis(){
        asc.addAllSeckillTourIdInRedis();
    }

    @GetMapping("startSeckill")
    public void startSeckill(){
        asc.startSeckill();
    }

    @GetMapping("checkUserPayOrNot")
    public void checkUserPayOrNot(){
        asc.checkUserPayOrNot();
    }

}
